<template>
  <div class="modal-overlay">
    <div class="modal-content">
      <button class="close-button" @click="closeModal">×</button>

      <h2 class="subtitle">CUSTOMER-CENTRIC QUOTE TO CASH PROCESS</h2>

      <h1 class="title">Execute quotes and contracts.</h1>
      <p class="description">
        Increase accuracy, improve efficiency, and gain more visibility into
        your revenue. With Workday, you can:
      </p>
      <ul class="benefits">
        <li>Expedite and improve quoting and pricing accuracy</li>
        <li>Enable process standardization with a single source for data</li>
        <li>See the full picture of revenue and resource</li>
      </ul>

      <a href="#" class="learn-more"
        >Learn how to manage disruption with a better quote-to-cash process.</a
      >

      <h2 class="section-title">Featured capabilities.</h2>

      <div class="capabilities">
        <div class="capability">
          <i class="icon icon-calculator"></i>
          <h3>Quoting Accuracy</h3>
          <ul>
            <li>
              <strong>Cloud-based system.</strong> Replace spreadsheets and
              paper documents.
            </li>
            <li>
              <strong>Seamless quoting.</strong> Create a quote in minutes.
            </li>
            <li>
              <strong>Streamlined approvals.</strong> Ensure compliance with key
              metrics.
            </li>
          </ul>
        </div>

        <div class="capability">
          <i class="icon icon-process"></i>
          <h3>Simplified Quote-to-Cash</h3>
          <ul>
            <li>
              <strong>Single data source.</strong> Enable standardized
              processes.
            </li>
            <li>
              <strong>Guided selling rules.</strong> Follow preset rules to
              build quotes.
            </li>
            <li>
              <strong>Process automation.</strong> Expedite contract and project
              setup.
            </li>
          </ul>
        </div>

        <div class="capability">
          <i class="icon icon-chart"></i>
          <h3>Revenue Insight</h3>
          <ul>
            <li>
              <strong>Billing and financial reporting.</strong> Understand your
              profitability by service, SKU, and customer.
            </li>
            <li>
              <strong>Revenue forecasts.</strong> Gain real-time visibility into
              opportunities.
            </li>
          </ul>
        </div>
      </div>

      <div class="navigation">
        <a href="#" class="prev">Revenue Reporting and Forecasting</a>
        <a href="#" class="next">CRM integration</a>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const isVisible = ref(true);

const closeModal = () => {
  isVisible.value = false;
};
</script>

<style scoped>
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.subtitle {
  color: #0077b5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.title {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.benefits {
  padding-left: 20px;
  margin-bottom: 20px;
}

.benefits li {
  margin-bottom: 10px;
  color: #444;
}

.learn-more {
  color: #0077b5;
  text-decoration: none;
  font-weight: bold;
}

.section-title {
  font-size: 24px;
  color: #333;
  margin: 40px 0 20px;
}

.capabilities {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.capability {
  flex: 1;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.icon {
  font-size: 32px;
  color: #0077b5;
  margin-bottom: 10px;
}

.capability h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.capability ul {
  padding-left: 20px;
}

.capability li {
  margin-bottom: 10px;
  color: #555;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.navigation a {
  color: #0077b5;
  text-decoration: none;
  font-weight: bold;
}

.prev::before {
  content: '←';
  margin-right: 5px;
}

.next::after {
  content: '→';
  margin-left: 5px;
}
</style>
